home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / pyshared / liveusb / config.py < prev    next >
Encoding:
Python Source  |  2012-02-24  |  880 b   |  30 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. import os
  4.  
  5. from configobj import ConfigObj
  6.  
  7. config_files = [ os.path.join('/', 'etc', 'liveusb-creator', f )
  8.                  for f in [ 'defaults.ini', 'vendor.ini', 'site.ini' ] ]
  9.  
  10. # XXX: move defaults to a proper defaults.ini file?
  11. default_config = {
  12.     'main_liveos_dir': 'live',
  13.     'running_liveos_mountpoint': '/live/image',
  14.     'liveos_toplevel_files': [ 'autorun.bat', 'autorun.inf', 'boot', '.disk',
  15.                                'doc', 'live', 'isolinux', 'syslinux' ],
  16.     'download': { 'enabled': False,
  17.                 },
  18.     'persistence': { 'enabled': False,
  19.                 },
  20.     'branding': { 'distribution': 'Tails',
  21.                   'header': ':/tails-liveusb-header.png',
  22.                   'partition_label': 'Tails',
  23.                 },
  24. }
  25.  
  26. config = ConfigObj(default_config)
  27.  
  28. for f in config_files:
  29.     config.merge(ConfigObj(f))
  30.